from flask import Flask, Response

app = Flask(__name__)

@app.route('/')
def hello_world():
    with open('iptv.m3u8', 'r', encoding='utf-8') as file:
        content = file.read()
    response = Response(content)
    response.headers['Content-Type'] = 'text/plain; charset=utf-8'
    return response

if __name__ == '__main__':
    app.run(debug=True,host='0.0.0.0',port=5000)